import request from '@/utils/request'
// 封装用户相关API

//明星广场列表
export const starListApi = (data) => { return request({ url: '/api/index/star_list', method: 'post', data }) }
/* //广场列表2
export const starListApi2 = (data) => { return request({ url: '/api/index/star_list', method: 'post', data }) } */
//获取banner
export const bannerApi = (data) => { return request({ url: '/index.php/api/index/banner', method: 'post', data }) }
//pc明星波形图
export const pcstarWaveApi = (data) => { return request({ url: '/api/index/pc_star_k', method: 'post', data }) }
//明星波形图
export const starWaveApi = (data) => { return request({ url: '/api/index/star_k', method: 'post', data }) }
//订单列表
export const orderList = (data) => { return request({ url: 'api/index/order_list', method: 'post', data }) }
//明星详情
export const starDetailApi = (data, config = {custom: {auth: true}}) => { return request({ url: '/api/index/star_info', method: 'post', data ,config}) }
//数据统计
export const numberApi = (data) => { return request({ url: '/api/index/config', method: 'post', data }) }
//合作伙伴banner
export const playBannerApi = (data) => { return request({ url: '/api/index/home_banner', method: 'post', data }) }
//登录
export const loginApi = (data) => { return request({ url: '/api/index/login', method: 'post', data }) }
//注册
export const registerApi = (data) => { return request({ url: '/api/index/reg', method: 'post', data }) }
//邀请码是否存在
export const codeApi = (data) => { return request({ url: '/api/index/code', method: 'post', data }) }
//发送验证码
export const sendSmsApi = (data) => { return request({ url: '/api/index/send_sms', method: 'post', data }) }
//忘记密码
export const forgetApi = (data) => { return request({ url: '/api/index/forgot_password', method: 'post', data }) }
//修改密码
export const editorApi = (data) => { return request({ url: '/api/data/modify_password', method: 'post', data }) }
//查询当前用户信息
export const getUserApi = (data) => { return request({ url: '/api/data/user', method: 'post', data }) }
//根据用户id查询用户详情
export const getUserDetailApi = (data) => { return request({ url: '/api/index/get_user', method: 'post', data }) }
//获取经销商
export const dealerApi = (data) => { return request({ url: '/api/index/dealer', method: 'post', data }) }
//经销商详情
export const dealerInfoApi = (data) => { return request({ url: '/api/index/dealer_info', method: 'post', data }) }
//帮助列表
export const helpApi = (data) => { return request({ url: '/api/index/help', method: 'post', data }) }
//帮助分类
export const helpTypeApi = (data) => { return request({ url: '/api/index/help_type', method: 'post', data }) }